package com.group3.group3.organ.repository;
/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2022/05/19/16:36
 * @Description:
 */

/**
 *@ClassName OrganDao
 *@Description
 *@Author 王琛
 *@Date 2022/5/19 16:36
 @Version 1.0
 */
import com.group3.group3.mybatis.flexigrid.PagingBean;
import com.group3.group3.mybatis.ztree.ZtreeEntity;
import com.group3.group3.organ.entity.OrganEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrganDao {

    List<OrganEntity> select(@Param("paging") PagingBean paging);

    OrganEntity selectById(@Param("organUuid")String organUuid);

    Integer Total();

    void delete(@Param("organUuid")String organUuid);

    void insert(@Param("organUuid") String organUuid,@Param("organName") String organName,
            @Param("modifierid") String modifierid,@Param("modtime") String modtime,
            @Param("description") String description);

    void update(@Param("organName") String organName, @Param("description") String description,
            @Param("organUuid") String organUuid);


    List<OrganEntity> selectParent();

    List<ZtreeEntity> zTreeList();

    void updateById(@Param("oId") String oId, @Param("pId") String pId);
}
